package iscript.uiFramework.components.menu 
{
	import flash.display.Bitmap;
	import flash.display.BitmapData;
	
	public class ToolStripSeparator extends ToolStripItem
	{
		
		private var _lineBitmapData:BitmapData;
		private var _lineBitmap:Bitmap
		
		public function ToolStripSeparator() 
		{
			this.enabled = false;
			super();
		}
		
		override protected function initialize():void 
		{
			
			super.initialize ();
			removeChild (_iconBitmap);
			removeChild (_hoverScale9GridBitmap);
			
			super._spacer.height = 4;
			_lineBitmapData = new BitmapData (1, 1, false, 0xBDBDBD);
			_lineBitmap = new Bitmap (_lineBitmapData);
			_lineBitmap.x = ToolStripItem.blockindent;
			_lineBitmap.y = super._spacer.height / 2;
			addChild (_lineBitmap );
 
		}
		
		override public function set width(value:Number):void 
		{
			super.width = value;
			_lineBitmap.width = super.width - _lineBitmap.x -2;
			
		}
		
		
		
	}

}